/* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
 Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
     http://www.apache.org/licenses/LICENSE-2.0
 Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/

.tensor-widget {
  font-family: monospace;
  font-size: 14px;
  overflow-x: hidden;
  overflow-y: hidden;
  position: relative;
}

.tensor-widget-dim {
  border: 1px solid rgb(160, 160, 160);
  display: inline-block;
  font-size: 12px;
  height: 14px;
  line-height: 14px;
  margin-left: 15px;
  margin-right: 15px;
  padding: 2px;
}

.tensor-widget-dim-comma {
  color: rgb(128, 128, 128);
  display: inline-block;
  font-size: 12px;
  height: 14px;
  line-height: 14px;
}

.tensor-widget-dim-highlighted {
  border: 1px solid rgb(100, 180, 255);
  font-weight: bold;
}

.tensor-widget-dim-brackets {
  color: rgb(128, 128, 128);
  display: inline-block;
  font-size: 8pt;
}

.tensor-widget-dim-dropdown {
  background-color: rgb(255, 255, 255);
  border: 1px solid rgb(128, 128, 128);
  box-shadow: 2px 2px 2px #b0b0b0;
  cursor: pointer;
  width: 180px;
  z-index: 1000;
}

.tensor-widget-dim-dropdown-menu-item {
  border-bottom: 1px solid rgb(180, 180, 180);
  font-size: 12px;
  padding: 3px;
  user-select: none;
}

.tensor-widget-dim-dropdown-menu-item-active {
  background-color: rgb(100, 180, 255);
}

.tensor-widget-dim-dropdown-menu-item-disabled {
  color: rgb(128, 128, 128);
}

.tensor-widget-dtype {
  align-content: center;
  color: rgb(60, 60, 60);
  display: inline-block;
  font-size: 8pt;
  height: 48px;
  line-height: 22px;
  max-height: 22px;
  padding-left: 14px;
  padding-right: 10px;
  position: relative;
  vertical-align: middle;
}

.tensor-widget-dtype-label {
  color: rgb(128, 128, 128);
}

.tensor-widget-header {
  background-color: rgb(252, 252, 252);
  box-shadow: 2px 2px 2px #b0b0b0;
  height: 40px;
  line-height: 40px;
  max-height: 40px;
  position: relative;
  vertical-align: middle;
  width: 100%;
}

.tensor-widget-info {
  align-content: center;
  color: rgb(0, 0, 255);
  display: inline-block;
  font-size: 8pt;
  height: 22px;
  line-height: 22px;
  margin-left: 8px;
  max-height: 22px;
  position: relative;
  vertical-align: middle;
}

.tensor-widget-menu-thumb {
  color: rgb(32, 33, 36);
  cursor: pointer;
  display: inline-block;
  font-weight: bold;
  font-size: 16px;
  margin-left: 10px;
  margin-right: 5px;
  position: relative;
  user-select: none;
}

.tensor-widget-menu-thumb:hover {
  color: rgb(227, 116, 0);
}

.tensor-widget-shape {
  color: rgb(60, 60, 60);
  display: inline-block;
  margin-left: 12px;
}

.tensor-widget-shape-label {
  color: rgb(128, 128, 128);
  display: inline-block;
}

.tensor-widget-shape-value {
  display: inline-block;
}

.tensor-widget-slicing-group {
  background-color: rgb(250, 250, 250);
  border-bottom: 1px solid rgb(190, 190, 190);
  display: block;
  height: 18px;
  text-align: center;
  padding-bottom: 5px;
  padding-top: 5px;
}

.tensor-widget-tensor-name {
  color: black;
  display: inline-block;
  font-weight: bold;
}

.tensor-widget-left-ruler-tick {
  background-color: var(--ruler-background-color);
  border-bottom: var(--border-style);
  border-top: var(--border-style);
  box-shadow: var(--border-style);
  color: rgb(110, 110, 110);
  cursor: pointer;
  display: inline-block;
  font-size: 12px;
  height: 29px;
  line-height: 29px;
  margin-left: 0px;
  max-width: 45px;
  text-align: center;
  user-select: none;
  vertical-align: middle;
  width: 45px;
}

.tensor-widget-top-ruler {
  height: 24px;
  white-space: nowrap;
}

.tensor-widget-value-tooltip {
  background-color: rgb(240, 240, 240);
  border: 1px solid rgb(160, 160, 160);
  box-shadow: 1px 1px 1px #b0b0b0;
  display: none;
  font-size: 13px;
  padding: 5px;
  position: absolute;
  user-select: none;
  width: 240px;
}

.tensor-widget-value-tooltip-colorbar {
  height: 24px;
  width: 95%;
}

.tensor-widget-value-tooltip-indices {
  font-weight: bold;
}

.tensor-widget-value-tooltip-value {
  margin-top: 20px;
}

.tensor-widget-top-ruler-tick {
  background-color: var(--ruler-background-color);
  border-bottom: var(--border-style);
  border-right: var(--border-style);
  color: rgb(110, 110, 110);
  cursor: pointer;
  display: inline-block;
  font-size: 12px;
  height: 24px;
  line-height: 24px;
  padding-right: 2px;
  text-align: center;
  user-select: none;
  vertical-align: middle;
  width: 45px;
}

.tensor-widget-value-div {
  border-bottom: var(--border-style);
  border-right: var(--border-style);
  cursor: pointer;
  display: inline-block;
  font-size: 80%;
  height: 24px;
  line-height: 24px;
  max-width: 45px;
  padding-right: 2px;
  text-align: right;
  user-select: none;
  vertical-align: middle;
  width: 45px;
}

.tensor-widget-value-div-selection {
  font-weight: bold;
}

.tensor-widget-value-div-selection-bottom {
  border-bottom: 0.5px solid blue;
}

.tensor-widget-value-div-selection-left {
  border-left: 0.5px solid blue;
}

.tensor-widget-value-div-selection-right {
  border-right: 0.5px solid blue;
}

.tensor-widget-value-div-selection-top {
  border-top: 0.5px solid blue;
}

.tensor-widget-value-section {
  --border-style: 1px solid rgb(140, 140, 140);
  --ruler-background-color: rgb(210, 210, 210);
  -moz-user-select: none;
  -ms-user-select: none;
  -khtml-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
}

.tensor-widget-value-row {
  height: 25px;
  line-height: 25px;
  white-space: nowrap;
}
